//
//  AEImage.m
//  AETravel
//
//  Created by carshoel on 16/4/24.
//  Copyright © 2016年 carshoel. All rights reserved.
//

#import "AEImage.h"

@implementation AEImage


+ (instancetype)imageWithName:(NSString *)name title:(NSString *)title{
    return [self imageWithUrl:nil name:name title:title host:nil];
}

+ (instancetype)imageWithName:(NSString *)name title:(NSString *)title host:(NSString *)host{
    return [self imageWithUrl:nil name:name title:title host:host];
}

+ (instancetype)imageWithUrl:(NSString *)url title:(NSString *)title host:(NSString *)host{
    return [self imageWithUrl:url name:nil title:title host:host];
}

+ (instancetype)imageWithUrl:(NSString *)url name:(NSString *)name title:(NSString *)title host:(NSString *)host{
    AEImage *image = [[self alloc] init];
    image.url = url;
    image.name = name;
    image.title = title;
    image.host = host;
    return image;
}

@end
